package base.IO流;

import java.io.FileReader;
import java.io.IOException;

public class 字符读取 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader(".\\src\\base\\IO流\\a.txt");
        char[] chars = new char[2];
        int i;
        while((i = fr.read(chars)) != -1){
            //System.out.print(chars);
            System.out.print(new String(chars,0,i));
        }

        fr.close();
    }
}
